package com.kudian.common.utils;

import com.google.gson.Gson;

/**
 * Created by Administrator on 2016/4/22.
 */
public class JsonUtils {
    /**
     * 对象转换成json字符串
     * @param obj
     * @return
     */
    public static String toJson(Object obj) {
        Gson gson = new Gson();
        return gson.toJson(obj);
    }
}
